option expr32
Option CaseMap:none

@tag_0		STRUCT 2t
String		SBYTE		16t DUP (?)
@tag_0		ENDS

IP_ADDRESS_STRING		TYPEDEF		@tag_0

PIP_ADDRESS_STRING		TYPEDEF		PTR @tag_0

IP_MASK_STRING			TYPEDEF		@tag_0

PIP_MASK_STRING			TYPEDEF		PTR @tag_0

@t_0					TYPEDEF		PTR _IP_ADDR_STRING
_IP_ADDR_STRING		STRUCT 2t
Next			@t_0					?
IpAddress		IP_ADDRESS_STRING		<>
IpMask			IP_MASK_STRING			<>
Context			DWORD					?
_IP_ADDR_STRING		ENDS

IP_ADDR_STRING		TYPEDEF		_IP_ADDR_STRING

PIP_ADDR_STRING		TYPEDEF		PTR _IP_ADDR_STRING

@t_1				TYPEDEF		PTR _IP_ADAPTER_INFO
_IP_ADAPTER_INFO		STRUCT 2t
Next					@t_1		?
ComboIndex				DWORD		?
AdapterName				SBYTE		260t DUP (?)
Description				SBYTE		132t DUP (?)
AddressLength			DWord		?
Address					BYTE		8t DUP (?)
Index					DWORD		?
Type1					DWord		?
DhcpEnabled				DWord		?
CurrentIpAddress		PIP_ADDR_STRING		?
IpAddressList			IP_ADDR_STRING		<>
GatewayList				IP_ADDR_STRING		<>
DhcpServer				IP_ADDR_STRING		<>
HaveWins				SWORD		?
PrimaryWinsServer		IP_ADDR_STRING		<>
SecondaryWinsServer		IP_ADDR_STRING		<>
LeaseObtained			SDWORD		?
LeaseExpires			SDWORD		?
_IP_ADAPTER_INFO		ENDS

IP_ADAPTER_INFO			TYPEDEF		_IP_ADAPTER_INFO

PIP_ADAPTER_INFO		TypeDef		Ptr _IP_ADAPTER_INFO


PIP_LIST		TypeDef		Ptr tag_ip_list
tag_ip_list		Struct
sz_ip			SByte		18 Dup (?)
sz_mac			Byte		6  Dup (?)
next			PIP_LIST		?
tag_ip_list		ENDS

IP_LIST			TYPEDEF		tag_ip_list


tag_DLC_header		Struct 1T
dst_mac			Byte		6T Dup (?)
src_mac			Byte		6T Dup (?)
eth_type		WORD		?
tag_DLC_header		ENDS

DLC_HEADER		TYPEDEF		tag_DLC_header

PDLC_HEADER		TYPEDEF		PTR tag_DLC_header

tag_arp_header		STRUCT 1t
hw_type			Word		?
port_type		WORD		?
hw_addr_len		BYTE		?
ip_addr_len		BYTE		?
opcode			Word		?
src_mac			Byte		6T Dup (?)
src_addr		DWORD		?
dst_mac			Byte		6T Dup (?)
dst_addr		DWORD		?
other			Byte		18T Dup (?)
tag_arp_header		ENDS

APR_HEADER		TYPEDEF		tag_arp_header

PARP_HEADER		TYPEDEF		PTR tag_arp_header

tag_arp_packet		STRUCT 1t
dlc_header		DLC_HEADER		<>
arp_header		APR_HEADER		<>
tag_arp_packet		ENDS

ARP_PACKET		TYPEDEF		tag_arp_packet
PARP_PACKET		TYPEDEF		PTR tag_arp_packet


tag_iphdr		STRUCT 1t
h_verlen			Byte		?
tos				Byte		?
total_len			Word		?
ident				Word		?
frag_and_flags			WORD		?
ttl				Byte		?
proto1				Byte		?
checksum			Word		?
sourceIP			Word		?
destIP				Word		?
tag_iphdr		ENDS

IP_HEADER		TYPEDEF		tag_iphdr

PIP_HEADER		TYPEDEF		PTR tag_iphdr

tag_udphdr		STRUCT 1t
uh_sport		WORD		?
uh_dport		WORD		?
uh_len			Word		?
uh_sum			Word		?
tag_udphdr		ENDS

UDP_HEADER		TYPEDEF		tag_udphdr

PUDP_HEADER		TYPEDEF		PTR tag_udphdr


timeval		STRUCT 2t
tv_sec		SDWORD		?
tv_usec		SDWORD		?
timeval		ENDS

pcap_pkthdr		STRUCT 2t
ts			timeval		<>
caplen			WORD		?
len			WORD		?
pcap_pkthdr		ENDS

QQ_MSG_HEAD		STRUCT 1t
flag			BYTE		?
u_version		WORD		?
u_cmd			WORD		?
u_sequence		WORD		?
u_qq_num		DWORD		?
QQ_MSG_HEAD		ENDS
